<?php

namespace app\index\validate;

use think\Validate;


class Dynamic extends Validate
{
    protected $rule = [
        'uid' => 'require',
        'content' => 'require',
        'images' => 'require|array',
        'address' => 'require',
        'j' => 'require',
        'w' => 'require',
    ];
    protected $message = [
        'uid.require' => '用户ID获取失败',
        'content.require' => '发布内容不能为空',
        'images.require' => '最少发布1张图片',
        'images.array' => '最少发布1张图片',
        'address.require' => '发布地址不能为空',
        'j.require' => '经度坐标不能为空',
        'w.require' => '纬度坐标不能为空',
    ];
}